package com.digitalcollege.bean.custom;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

/**
 * @class: ResponseCode
 * @author: liyusheng
 * @description:
 * @date: 2022/12/17 20:53
 */
@Getter
@ApiModel("响应状态码枚举")
public enum ResponseCode {
    SUCCESS(20000, "请求成功"),
    BUSINESS_FAILURE(50000, "业务异常"),
    NO_AUTHENTICATED(40010, "认证异常！");
    @ApiModelProperty("状态码")
    private Integer code;

    @ApiModelProperty("消息")
    private String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
